<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>电影-郫县电影</title>
<link rel="short icon"  href="/photo/head.png"/>
</head>
<body>

	<form action="/filmfind/filmname" mothed="get">
		<input type="text" name="filmName" />
		<input type="submit" value="搜索" />
	</form>
	
	<table>
		<thead>
			<tr>
				<th>电影名称</th>
				<th>导演</th>
				<th>封面</th>
				<th>类型</th>
				<th>主演</th>
				<th>国家</th>
				<th>评分</th>
				<th>介绍</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${requestScope.films }" var="a">
				
				<tr>	
				
					<td>${a.filmName }</td>
					<td>${a.director }</td>
					<td>${a.cover }</td>
					<td>${a.type }</td>
					<td>${a.leads }</td>
					<td>${a.country }</td>
					<td>${a.score }</td>
					<td>${a.introduction }</td>
					<td>
						<form action="/user/select/cinema" method="post">
							<input type="hidden" name="movieId" value="${a.movieId}" />
							<input type="submit" value="选择" />
						</form>
					</td>
				</tr>
				
			</c:forEach>
		</tbody>
	</table>
	
</body>
</html>